<template>
  <view class="container" @click="searchHandler()">
    <uni-icons type="search"></uni-icons>
    <view class="text">书名/作者/ISBN/出版社</view>
  </view>
</template>

<script>
  export default {
    name: "my-search",
    data() {
      return {

      };
    },
    methods: {
      searchHandler() {
        this.$emit('click')
      }
    }
  }
</script>

<style lang="scss">
  .container {
    display: flex;
    height: 36px;
    margin: 20rpx;
    background-color: #FFFFFF;
    align-items: center;
    justify-content: center;
    color: gray;
    border-radius: 18rpx;
    .text {
      margin-left: 5px;
      font-size: 14px;
    }
  }
</style>
